<?php

include_once dirname(__FILE__) . '/../system/settings.php';
if ($_POST) {
    $id_modelo = $_POST['modelo'];
    $id_versao = $_POST['versao'];
    ModelosVersoesControl::Insert($id_modelo, $id_versao);
    header("location: " . $_POST['redirect']);
} else if ($_GET) {
    $id_modelo = $_GET['id_modelo'];
    $id_versao = $_GET['id_versao'];
    ModelosVersoesControl::Delete($id_modelo, $id_versao);
    header("location: " . $_GET['redirect']);
}
?>
